import request from '@/utils/request-dev'

//新增教师列表
export function getTeacherList(param) {
    return request({
        url: '/mbl/Teacher/getTeacherList',
        method: 'get',
        params: param
    })
}
//获取教师详情
export function getTeacherItem(param) {
    return request({
        url: '/mbl/Teacher/getTeacherItem',
        method: 'get',
        params: param
    })
}
//新增教师信息
export function addTeacher(param) {
    return request({
        url: '/mbl/Teacher/addTeacher',
        method: 'post',
        data: param
    })
}

//修改教师信息
export function updateTeacher(param) {
    return request({
        url: '/mbl/Teacher/updateTeacher',
        method: 'post',
        data: param
    })
}
//删除教师信息
export function deleteTeacher(param) {
    return request({
        url: '/mbl/Teacher/deleteTeacher',
        method: 'post',
        data: param
    })
}
//添加教师教育经历
export function addTeacherEducation(param) {
    return request({
        url: '/mbl/Teacher/addTeacherEducation',
        method: 'post',
        data: param
    })
}
//删除教师教育经历
export function deleteTeacherEducation(param) {
    return request({
        url: '/mbl/Teacher/deleteTeacherEducation',
        method: 'post',
        data: param
    })
}
//添加文章
export function addTeacherArticle(param) {
    return request({
        url: '/mbl/Teacher/addTeacherArticle',
        method: 'post',
        data: param
    })
}
//删除文章
export function deleteTeacherArticle(param) {
    return request({
        url: '/mbl/Teacher/deleteTeacherArticle',
        method: 'post',
        data: param
    })
}
//新增获奖文章
export function addTeacherAward(param) {
    return request({
        url: '/mbl/Teacher/addTeacherAward',
        method: 'post',
        data: param
    })
}
//删除获奖文章
export function deleteTeacherAward(param) {
    return request({
        url: '/mbl/Teacher/deleteTeacherAward',
        method: 'post',
        data: param
    })
}

//新增校友列表
export function getAlumniList(param) {
    return request({
        url: '/mbl/Student/getAlumniList',
        method: 'get',
        params: param
    })
}
//新增校友信息
export function addAlumni(param) {
    return request({
        url: '/mbl/Student/addAlumni',
        method: 'post',
        data: param
    })
}

//修改校友信息
export function updateAlumni(param) {
    return request({
        url: '/mbl/Student/updateAlumni',
        method: 'post',
        data: param
    })
}
//删除校友信息
export function deleteAlumni(param) {
    return request({
        url: '/mbl/Student/deleteAlumni',
        method: 'post',
        data: param
    })
}



//新增博士后列表
export function getPostDoctorList(param) {
    return request({
        url: '/mbl/Teacher/getPostDoctorList',
        method: 'get',
        params: param
    })
}
//新增博士后信息
export function addPostDoctor(param) {
    return request({
        url: '/mbl/Teacher/addPostDoctor',
        method: 'post',
        data: param
    })
}

//修改博士后信息
export function updatePostDoctor(param) {
    return request({
        url: '/mbl/Teacher/updatePostDoctor',
        method: 'post',
        data: param
    })
}
//删除博士后信息
export function deletePostDoctor(param) {
    return request({
        url: '/mbl/Teacher/deletePostDoctor',
        method: 'post',
        data: param
    })
}


//新增研究生列表
export function getStudentList(param) {
    return request({
        url: '/mbl/Student/getStudentList',
        method: 'get',
        params: param
    })
}
//新增研究生信息
export function addStudent(param) {
    return request({
        url: '/mbl/Student/addStudent',
        method: 'post',
        data: param
    })
}

//修改研究生信息
export function updateStudent(param) {
    return request({
        url: '/mbl/Student/updateStudent',
        method: 'post',
        data: param
    })
}
//删除研究生信息
export function deleteStudent(param) {
    return request({
        url: '/mbl/Student/deleteStudent',
        method: 'post',
        data: param
    })
}
// 上传图片
export function uploadFile(param) {
    return request({
        contentType: false,
        headers: {'X-Requested-With': 'XMLHttpRequest'},
        url: '/mbl/FileController/uploadFile',
        method: 'post',
        data: param
    })
}

//获取相册列表
export function getGalleryList(param) {
    return request({
        url: '/mbl/Gallery/getGalleryList',
        method: 'get',
        params: param
    })
}

//新增相册信息
export function addGallery(param) {
    return request({
        url: '/mbl/Gallery/addGallery',
        method: 'post',
        data: param
    })
}
//修改相册信息
export function updateGallery(param) {
    return request({
        url: '/mbl/Gallery/updateGallery',
        method: 'post',
        data: param
    })
}
//删除相册信息
export function deleteGallery(param) {
    return request({
        url: '/mbl/Gallery/deleteGallery',
        method: 'post',
        data: param
    })
}